/**
 * Copyright 2020 OPSLI 快速开发平台 https://www.opsli.com
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package org.opsli.api.wrapper.business.valveDevice;

import java.math.BigDecimal;
import java.util.Date;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.opsli.api.base.warpper.ApiWrapper;
import org.opsli.common.annotation.validator.Validator;
import org.opsli.common.annotation.validator.ValidatorLenMax;
import org.opsli.common.annotation.validator.ValidatorLenMin;
import org.opsli.common.enums.ValidatorType;
import org.opsli.plugins.excel.annotation.ExcelInfo;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
* 阀门井设备 Model
*
* @author zk
* @date 2021-10-27 11:01:20
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class ValveDeviceModel extends ApiWrapper {

    /** 公司编号 */
    @ApiModelProperty(value = "公司编号")
    @ExcelProperty(value = "公司编号", order = 1)
    @ExcelInfo
    @ValidatorLenMax(19)
    private String devid;

    /** 阀门井编号 */
    @ApiModelProperty(value = "阀门井编号")
    @ExcelProperty(value = "阀门井编号", order = 2)
    @ExcelInfo
    @ValidatorLenMax(19)
    private String valueId;

    /** 设备编号 */
    @ApiModelProperty(value = "设备编号")
    @ExcelProperty(value = "设备编号", order = 3)
    @ExcelInfo
    @ValidatorLenMax(50)
    private String deviceId;

    /** 设备版本 */
    @ApiModelProperty(value = "设备版本")
    @ExcelProperty(value = "设备版本", order = 4)
    @ExcelInfo
    @ValidatorLenMax(50)
    private String deviceVersion;

    /** 设备电池电压 */
    @ApiModelProperty(value = "设备电池电压")
    @ExcelProperty(value = "设备电池电压", order = 5)
    @ExcelInfo
    @ValidatorLenMax(50)
    private String deviceVoltage;

    /** 设备安装日期 */
    @ApiModelProperty(value = "设备安装日期")
    @ExcelProperty(value = "设备安装日期", order = 6)
    @ExcelInfo
    @ValidatorLenMax(50)
    private String deviceTime;

    /** 联系电话1 */
    @ApiModelProperty(value = "联系电话1")
    @ExcelProperty(value = "联系电话1", order = 7)
    @ExcelInfo
    @ValidatorLenMax(50)
    private String phone1;

    /** 联系电话2 */
    @ApiModelProperty(value = "联系电话2")
    @ExcelProperty(value = "联系电话2", order = 8)
    @ExcelInfo
    @ValidatorLenMax(50)
    private String phone2;

    /** 联系电话3 */
    @ApiModelProperty(value = "联系电话3")
    @ExcelProperty(value = "联系电话3", order = 9)
    @ExcelInfo
    @ValidatorLenMax(50)
    private String phone3;

    /** 联系电话4 */
    @ApiModelProperty(value = "联系电话4")
    @ExcelProperty(value = "联系电话4", order = 10)
    @ExcelInfo
    @ValidatorLenMax(50)
    private String phone4;

    /** 联系电话5 */
    @ApiModelProperty(value = "联系电话5")
    @ExcelProperty(value = "联系电话5", order = 11)
    @ExcelInfo
    @ValidatorLenMax(50)
    private String phone5;

    /** 采集周期(分钟) */
    @ApiModelProperty(value = "采集周期(分钟)")
    @ExcelProperty(value = "采集周期(分钟)", order = 12)
    @ExcelInfo
    @ValidatorLenMax(50)
    private String collectTime;

    /** 上传周期(小时) */
    @ApiModelProperty(value = "上传周期(小时)")
    @ExcelProperty(value = "上传周期(小时)", order = 13)
    @ExcelInfo
    @ValidatorLenMax(50)
    private String uploadHour;

    /** 上传周期(分钟) */
    @ApiModelProperty(value = "上传周期(分钟)")
    @ExcelProperty(value = "上传周期(分钟)", order = 14)
    @ExcelInfo
    @ValidatorLenMax(50)
    private String uploadMin;

    /** 上传周期(秒) */
    @ApiModelProperty(value = "上传周期(秒)")
    @ExcelProperty(value = "上传周期(秒)", order = 15)
    @ExcelInfo
    @ValidatorLenMax(50)
    private String uploadSs;

    /** 服务器ip */
    @ApiModelProperty(value = "服务器ip")
    @ExcelProperty(value = "服务器ip", order = 16)
    @ExcelInfo
    @ValidatorLenMax(50)
    private String serverIp;

    /** 服务器端口 */
    @ApiModelProperty(value = "服务器端口")
    @ExcelProperty(value = "服务器端口", order = 17)
    @ExcelInfo
    @ValidatorLenMax(50)
    private String serverPort;

    /** 服务器APN */
    @ApiModelProperty(value = "服务器APN")
    @ExcelProperty(value = "服务器APN", order = 18)
    @ExcelInfo
    @ValidatorLenMax(50)
    private String serverApn;

    /** 上次读取位置*/
    @ApiModelProperty(value = "上次读取位置")
    @ExcelProperty(value = "上次读取位置", order = 19)
    @ExcelInfo
    @ValidatorLenMax(10)
    private String his;

    private String valveName;

    private String phone;

    private String uploadTime;

    /** 服务器APN */
    @ApiModelProperty(value = "是否报警")
    @ExcelProperty(value = "是否报警", order = 20)
    @ExcelInfo
    @ValidatorLenMax(1)
    private String alarmState;

    private String description;


}
